﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="Sec005.aspx.cs" Inherits="Admin_Sys_Sec_Sec005" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%; min-width: 700px">
        <yncWeb:PagnationGrid PageSize="30" ID="gridUsers" runat="server" OnOnPageIndexChange="PageChanged">
            <HeaderTemplate>
                <table width="100%" cellspacing="0" cellpadding="0" class="AddTable" align="left">
                    <tr>
                        <td>
                        </td>
                        <td width="60px" align="center">
                            <%=GetAddLink("Sec005a.aspx", null, 680, 540)%>
                        </td>
                    </tr>
                </table>
                <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable" align="left">
                    <thead>
                        <tr>
                            <th width="40px">
                               序号
                            </th>
                            <th width="100px">
                                登录帐号
                            </th>
                            <th width="100px">
                                角色
                            </th>
                            <th width="100px">
                                姓名
                            </th>       
                            <th>
                                部门
                            </th>                    
                            <th width="180px">
                                邮件
                            </th>
                            <th width="120px">上级领导</th>
                            <th>机构</th>
                            <th width="60px" class="center">
                                状态
                            </th>
                            <th width="130px" class="center">
                                创建日期
                            </th>
                            <th width="60px" class="center">
                                修改
                            </th>
                            <th width="60px" class="center">
                                锁定
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Container.ItemIndex +1 %>
                    </td>
                    <td>
                        <%# Eval(TSUsersMetadata.ColumnNames.LoginName) %>
                    </td>
                    <td>
                        <%# Eval(TSRoleMetadata.ColumnNames.RoleName) %>
                    </td>
                    <td>
                        <%# Eval(TSUserInfoMetadata.ColumnNames.UserName) %>
                    </td>
                    <td>
                        <%# Eval("DeptName") %>
                    </td>
                    <td>
                        <%# Eval(TSUserInfoMetadata.ColumnNames.Email)%>
                    </td>
                    <td>
                        <%# Eval(TSUserInfoMetadata.ColumnNames.Manager)%>
                    </td>
                    <td>
                        <%# Eval("ThirdUnitName")%>
                    </td>
                    <td class="center action">
                        <%# GetActiveStatus(Eval(TSUsersMetadata.ColumnNames.IsActive)) %>
                    </td>
                    <td class="center">
                        <%# Eval(TSUsersMetadata.ColumnNames.CreatedTime).FormatDate(ConstantValue.DateFormat)%></td>
                    <td class="center action">
                        <%# GetUpdateLink("Sec005a.aspx", Container.DataItem, 680, 540, TSUsersMetadata.ColumnNames.UserID)%>
                    </td>
                    <td class="center action">
                        <%# GetConfirmLink("锁定","D","Sec005a.aspx", Container.DataItem,"您确定要锁定该用户吗?", TSUsersMetadata.ColumnNames.UserID)%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </yncWeb:PagnationGrid>
    </div>
</asp:Content>
